package com.quanyan.user.mapper;

import com.lefu.commons.utils.Page;
import com.quanyan.user.model.db.TbReceiveDetail;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2016/7/1.
 */
public interface ReceiveDetailMapper {

    /**
     * 获取当日 获得鸟蛋数量
     * @param map
     * @return
     */
    Long getCurrentDayReceiveEggShellNum(@Param("m") Map<String, Object> map);

    /**
     * 查询30天内的数据
     * @param uid
     * @return
     */
    List<TbReceiveDetail> findByDay(@Param("uid") Integer uid);


    int insertDuplicate(TbReceiveDetail tbReceiveDetail);

}
